<template>
  <div>

    <h3>欢迎 {{ loginName }} 使用蜗牛书城后台管理系统!</h3>
    <el-button type="primary" @click="showAllAccount">主要按钮</el-button>

  </div>
</template>

<script>
export default {
  name: "WelcomeView",
  data() {
    return {
      loginName: "jack(默认)"
    }
  },
  methods: {

    showAllAccount(){
      this.$axios.post("/api/showAllAccount", )
          .then(res => {
            console.log(res)

          })
    }
  }

}
</script>

<style scoped>

</style>
